import axios from '../utils/http'

// 获取树列表
export async function getDeviceList() {
  const res = await axios.get('/api/cloud_device/list')
  if (res.success === true) {
    return res.data
  }
  return false
}
// 搜索
export async function searchList(list) {
  const res = await axios.post('/api/cloud_manger/list', list)
  if (res.success === true) {
    return res.data
  }
  return false
}

// 获取图片列表
export async function getImageList(params) {
  const res = await axios.post('/api/cloud_manger/detail', params)
  if (res.success) {
    return res.data
  }
  return false
}
